import request from "@/utils/request";
import qs from "qs";
import { Base64 } from "js-base64";
import {
  HomeProductlist_,
  HomeProductSort_,
  HomeProductSearch_,
} from "../../urlApi";
// 首页商品列表
export const HomeProductlist = (data) => {
  return request({
    url: HomeProductlist_,
    method: "post",
    data: qs.stringify(data),
  });
};
// 首页商品排序
export const HomeProductSort = (data) => {
  return request({
    url: HomeProductSort_,
    headers: {
      repeatSubmit: false,
    },
    method: "post",
    data: qs.stringify(data),
  });
};
// 首页商品排序搜索
export const HomeProductSearch = (data) => {
  return request({
    url: HomeProductSearch_,
    headers: {
      repeatSubmit: false,
    },
    method: "post",
    data: qs.stringify(data),
  });
};
